//-------------------------------------------------------------------
//-------------------------------------------------------------------

#include "ioport.h"


extern void hexstring ( unsigned int d );

//-------------------------------------------------------------------------
int notmain ( unsigned int sp )
{
    unsigned int ra;
    unsigned int x;

    /* init PH11 */
    ra = GET32(PH_CFG1);
    ra &= (~(0x0f << 12));
    ra |= (1 << 12);
    PUT32(PH_CFG1, ra);
    x = GET32(PH_DAT);
    x &= (~(1 << 11));

    /* switch led on or off */
    PUT32(PH_DAT, x);
    //x^=(1<<10);
    while(1)
    {
        x ^= (1 << 11);
        PUT32(PH_DAT, x);
        // DELAY(0x20000000);
        DELAY(0x60000);
    }
    return(0);
}
//-------------------------------------------------------------------

//-------------------------------------------------------------------
//-------------------------------------------------------------------
